import Cookies from 'js-cookie'

const TokenKey = 'vue_admin_up_table_token'

export function getToken() {
  return Cookies.get(TokenKey)
}
export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
    localStorage.removeItem('userInfo')
    localStorage.removeItem('menu')
    return Cookies.remove(TokenKey)
}
